#ifndef COMPILE
#include "./head.cpp"
#endif

bool test1()
{
    auto ans = Solution().lengthOfLongestSubstring("abcabcbb");

    return ans == 3;
}

bool test2()
{
    auto ans = Solution().lengthOfLongestSubstring("bbbbb");

    return ans == 1;
}

bool test3()
{
    auto ans = Solution().lengthOfLongestSubstring("pwwkew");

    return ans == 3;
}

int main()
{
    if (test1())
        std::cout << "示例一通过..." << std::endl;
    if (test2())
        std::cout << "示例二通过..." << std::endl;
    if (test3())
        std::cout << "示例三通过..." << std::endl;

    return 0;
}